import request from '@/api/request'

export function findReturnApply(start = 1, limit = 10, data) { // 查询退单列表及分页
  return request({
    url: `/lejuAdmin/orderReturn/findReturnApply/${start}/${limit}`,
    method: 'post',
    data
  })
}
export function orderReturn(id) { // 查询退单列表及分页
  return request({
    url: `/lejuAdmin/orderReturn/${id}`,
    method: 'get'
  })
}

export function agreeApply(id, data) { // 同意退款
  return request({
    url: `/lejuAdmin/orderReturn/agreeApply/${id}`,
    method: 'post',
    data
  })
}

export function rejectApply(id, data) { // 拒绝退款
  return request({
    url: `/lejuAdmin/orderReturn/rejectApply/${id}`,
    method: 'post',
    data
  })
}

export function receiveProduct(id, data) { // 确认收货
  return request({
    url: `/lejuAdmin/orderReturn/receiveProduct/${id}`,
    method: 'post',
    data
  })
}
